import bbRequest from "@/service";
import { IDataType } from "@/service/type";

//获取用户列表数据
export function getUserListRequest(url: string, queryInfo: any) {
  return bbRequest.post<IDataType>({
    url: url,
    data: queryInfo,
  });
}


// 删除用户列表数据

export function deleteUserListRequest(url:string) {
  return bbRequest.delete<IDataType>({
    url:url,
  })
}

// 创建用户数据

export function createUesrListRequest(url:string,queryInfo:any){
  return bbRequest.post<IDataType>({
    url:url,
    data:queryInfo
  })
}

// 编辑用户数据的请求

export function editUserListRequest(url:string,editData:any){
  return bbRequest.patch<IDataType>({
    url:url,
    data:editData
  })
}
